package com.hwg.emp.service.impl;

import java.util.List;

import com.hwg.emp.common.dto.KeysQueryDto;
import com.hwg.emp.dao.AttendanceDAO;
import com.hwg.emp.dao.DaoFactory;
import com.hwg.emp.dto.AttendanceDto;
import com.hwg.emp.dto.PageBean;
import com.hwg.emp.model.AttendanceMD;
import com.hwg.emp.service.AttendanceService;

public class AttendanceServiceImpl implements AttendanceService{
	
	private AttendanceDAO attendanceDao=DaoFactory.getDao(AttendanceDAO.class);
	
	@Override
	public int selectEmpAttendance(String deptId) throws Exception {
		// TODO Auto-generated method stub
		return attendanceDao.selectEmpAttendance(deptId);
	}

	@Override
	public List<AttendanceDto> selectEmpAttendance(String deptId,PageBean pageBean) throws Exception {
		// TODO Auto-generated method stub
		return attendanceDao.selectEmpAttendance(deptId,pageBean);
	}

	@Override
	public List<AttendanceDto> selectEmpAttendance(PageBean pageBean) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int selectAttendanceByKey(KeysQueryDto dto, List<AttendanceMD> pageData) throws Exception {
		// TODO Auto-generated method stub
		return attendanceDao.selectAttendanceByKey(dto, pageData);
	}
	
}
